import { defineConfig } from 'vite'
import path from 'path'
import vue from '@vitejs/plugin-vue'
import dns from 'node:dns'


dns.setDefaultResultOrder('verbatim')
// https://vite.dev/config/
export default defineConfig({
  server: {
    allowedHosts: [
      '6d4acab6.r37.cpolar.top', // 添加此主机
      'localhost', // 如果需要本地访问，也可以加入 localhost
    ],
  },
  plugins: [vue()],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src')
    }
  },
})
